const pType = {
  'h5': 'BIXUAN_H5',
  'mp-weixin': 'BIXUAN_MINI'
}
const platformType = pType[process.env.VUE_APP_PLATFORM]
const sysInfo = uni.getSystemInfoSync();
//#ifdef MP-WEIXIN
const wxInfo = uni.getAccountInfoSync();
console.log("wxInfo",wxInfo);
//#endif
export default {
  api_key: 'uJSE0jR6zRJPi7OE',
  app_version: '5.8.8',
  api_version: 'v1',
  phone_model: sysInfo.model || 'web',
  phone_version: sysInfo.system || 'webkit',
  source: platformType,
  // network_type: navigator.connection ? navigator.connection.effectiveType : '',
  screen_height: sysInfo.screenHeight,
  screen_width: sysInfo.screenWidth,
  platform:'BI_XUAN'
}

const DEFAULT_VALUE = {
  Logo: 'https://oss.bisinuolan.cn/default-1568795237944-58042a75ac66485491c3f328818bd070.png',
  TYPE: {
    H5: 0,
    GOOD: 1,
    PACKAGE: 2,
    SUBJECT_DETAIL: 3,
    SUBJECT_LIST: 4,
    ACTIVITY: 5
  }
}

export const DV = DEFAULT_VALUE
